//调用接口配置文件
import { request,verifyToken } from 'config/request'
import config from 'config/config'

  //导出
export async function down(params) {
  return request({
      url: `zituo-admin/a/client/xftClientBuildingRelation/export?areaId=${params.areaId}&projectId=${params.projectId}`,
      method: 'GET',
      // data: params,
  });
};

//客户转移
export async function submit(params) {
  return request({
      url: `zituo-admin/a/client/xftClientBuildingRelation/updateBatchBroker`,
      method: 'POST',
      data: params,
  });
};
//获取区域项目
export async function getProjectList(params) {
  return request({
      url: `zituo-admin/a/sys/baseOrg/projectList`,
      method: 'GET',
      data: params,
  });
};

//获取客户转移下团队
export async function getTeamsByProjectId(params) {
  return request({
      url: `zituo-admin/a/sys/zituoTeamInfo/getTeamsByProjectId`,
      method: 'POST',
      data: params,
  });
};

//获取客户转移下成员
export async function getTeamUser(params) {
  return request({
      url: `zituo-admin/a/sys/zituoTeamInfo/findZituoTeamsMembersByTeamId`,
      method: 'POST',
      data: params,
  });
};


//获取拓客方式
export async function getmMethod(params) {
  return request({
      url: `zituo-admin/a/client/xftClientBuildingRelation/method`,
      method: 'POST',
      data: params,
  });
};

//验证token
export async function verifyCodeFun(){
  return verifyToken();
}